class BassAction:

    def __init__(self,driver):
        self.driver=driver

    def find_el(self,feature):#self可以调用该类的其他方法，可以引用该类的所有变量
        return self.driver.find_element(*feature)#解包feature

    def find_els(self,feature):
        return self.driver.find_elements(*feature)


    def click(self,feature):
        return self.find_el(feature).click()

    def send_key(self,feature,key):
        return self.find_el(feature).send_keys(key)

    def get_msg(self,feature):
        return self.find_el(feature).text


